home *** CD-ROM | disk | FTP | other *** search
- ;unsigned short mouse_present();
-
- EXTRN _memory_model:byte
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
- ASSUME CS:_TEXT
- PUBLIC _mouse_present
- _mouse_present proc near
- mov ax,0 ;function number
- int 33h ;mouse interrupt
- cmp ax,0 ;test for zero
- je L1 ;jump if no mouse present
- mov ax,bx ;number buttons
- L1: cmp _memory_model,0 ;quit
- jle quit ;
- db 0CBh ;RET far
- quit: ret ;RET near
- _mouse_present ENDP
- _TEXT ENDS
- END